<?php
namespace app\index\controller;
use \think\Controller;

class Base extends Controller
{
	public $webname;
	public $pagecount;
	
	protected function _initialize()
	{
		$conf = \think\Config::get('myconfig');
		$this->webname 		= $conf['webname'];
		$this->pagecount 	= $conf['pagecount'];
		
		$this->assign('webname',$this->webname);
		$this->assign('pagecount',$this->pagecount);
	}
}